package com.sciai.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * <p>
 * CSV导入的天气数据
 * </p>
 *
 * @author tqx
 * @since 2023-09-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("csv_data")
public class CsvData {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String wbName;
    private String wbId;
    private String content;
    private String occurrencePlace;
    private String occurrenceCity;
    private String occurrenceProvince;
    private String occurrenceCountry;
    private String lon;
    private String lat;
    private Integer weatherType;
    private Integer pageNum;
    private Integer forwardNum;
    private Integer commentNum;
    private Integer likeNum;
    private Integer checkIs;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date occurrenceTime;
}
